package com.socialuni.sdk.api;

import com.socialuni.sdk.api.model.RO.user.base.SocialUserFollowDetailRO;
import com.socialuni.sdk.api.model.ResultRO;
import com.socialuni.sdk.model.QO.FollowAddVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@RequestMapping("socialuni/follow")
@FeignClient(name = "follow", url = "${social.server-url:https://api.socialuni.com}")
public interface FollowAPI extends FeignAPI {

    @PostMapping("queryUserFollows")
    ResultRO<Map<String, List<SocialUserFollowDetailRO>>> queryUserFollows();

    @PostMapping("addFollow")
    ResultRO<Object> addFollow(FollowAddVO addVO);

    @PostMapping("cancelFollow")
    ResultRO<Object> cancelFollow(FollowAddVO addVO);

}